package com.example.weixincommonfeign;

import com.weixin.common.core.constant.ServiceNameConstants;
import com.weixin.common.core.domain.Result;
import com.weixin.common.core.entity.SysLog;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @version 1.0.0
 * @className: FeignLogService
 * @description: 系统日志服务
 * @author: zhangjunfa
 * @date: 2023/7/7 11:48
 */
@FeignClient(name = ServiceNameConstants.SYSTEM_SERVICE, path = "/log")
public interface FeignLogService {
    /**
     * 保存系统日志参数
     *
     * @param sysLog 系统日志参数
     * @return
     */
    @PostMapping("/add")
    Result<?> addLog(SysLog sysLog);
}
